package com.qiang.demo01;

import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        Student st1 = new Student("张三", 80, 80, 80);
        Student st2 = new Student("李四", 77, 70, 70);
        Student st3 = new Student("王麻子", 100, 100, 100);
        ts.add(st1);
        ts.add(st2);
        ts.add(st3);
        for (Student t : ts) {
            System.out.println(t);
        }
        System.out.println(st1.hashCode());
        System.out.println(st2.hashCode());
    }
}
